[TYPO3-dev] cache framework - exception in apc backend when no space is left
Steffen Gebert
steffen at steffen-gebert.de
Tue Nov 2 13:23:53 CET 2010
On 02.11.10 13:06, Dominique Feyer wrote:
> I think using opcode cache to cache user data is not a good idea, switch
> to memcache or an other dedicated caching system for user data.
Isn't it a feature of APC, being not *only* an opcode cache, but also a
persistent store (persistent between requests)?
I wonder why this code doesn't throw an exception:
> $success = apc_store($this->identifierPrefix . $entryIdentifier, $data, $expiration);
> if ($success === TRUE) {
> $this->removeIdentifierFromAllTags($entryIdentifier);
> $this->addIdentifierToTags($entryIdentifier, $tags);
> } else {
> throw new t3lib_cache_Exception(
> 'Could not set value.',
> 1232986877
> );
> }
Isn't this the piece of code, which you described?
Christan "the cache" Kuhn, what do you think? Reading the code, I really
wonder why no exception is thrown.
Kind regards
Steffen
--
Steffen Gebert
TYPO3 Core Team Member
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/
More information about the TYPO3-dev
mailing list