DDC-1396: [APC Cache] "clear-cache" commands do not work with cli #1748

Closed
opened 2026-01-22 13:24:29 +01:00 by admin · 2 comments
Owner

Originally created by @doctrinebot on GitHub (Sep 27, 2011).

Originally assigned to: @guilhermeblanco on GitHub.

Jira issue originally created by user jforet:

Commands for clear-cache:result, clear-cache:query, clear-cache:metadata do not work with cli and APC Cache

Revert some correction not tested by guilhermeblanco by adding

if ($cacheDriver instanceof \Doctrine\Common\Cache\ApcCache)
{
    throw new \LogicException("Cannot clear APC Cache from Console, its shared in the Webserver memory and not accessible from the CLI.");
}
Originally created by @doctrinebot on GitHub (Sep 27, 2011). Originally assigned to: @guilhermeblanco on GitHub. Jira issue originally created by user jforet: Commands for clear-cache:result, clear-cache:query, clear-cache:metadata do not work with cli and APC Cache Revert some correction not tested by guilhermeblanco by adding ``` if ($cacheDriver instanceof \Doctrine\Common\Cache\ApcCache) { throw new \LogicException("Cannot clear APC Cache from Console, its shared in the Webserver memory and not accessible from the CLI."); } ```
admin added the Bug label 2026-01-22 13:24:29 +01:00
admin closed this issue 2026-01-22 13:24:30 +01:00
Author
Owner

@doctrinebot commented on GitHub (Oct 3, 2011):

Comment created by @guilhermeblanco:

Fixed in https://github.com/doctrine/doctrine2/commit/8efae0b232210b27200f2709e7fcb24c7f02c5de

Thanks for the report. =)

@doctrinebot commented on GitHub (Oct 3, 2011): Comment created by @guilhermeblanco: Fixed in https://github.com/doctrine/doctrine2/commit/8efae0b232210b27200f2709e7fcb24c7f02c5de Thanks for the report. =)
Author
Owner

@doctrinebot commented on GitHub (Oct 3, 2011):

Issue was closed with resolution "Fixed"

@doctrinebot commented on GitHub (Oct 3, 2011): Issue was closed with resolution "Fixed"
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#1748