La fonction `cache_me()` fait une boucle infinie si apcu est chargé mais sans mémoire allouée #7

Closed
opened 9 months ago by cerdic · 0 comments
cerdic commented 9 months ago
Owner

Dans ce cas, le code suivant

$key = 'tululu';
$ttl = 3600;
var_dump(memoization()->exists($key));
memoization()->set($key, null, $ttl);
var_dump(memoization()->exists($key));
memoization()->set($key, 'pouet', $ttl);
var_dump(memoization()->exists($key));

donne

bool(false)
bool(false)
bool(false)

et on a une boucle infinie ici
https://git.spip.net/spip-contrib-extensions/memoization/src/branch/master/memoization_options.php#L295

car le test est toujours false

Dans ce cas, le code suivant ``` $key = 'tululu'; $ttl = 3600; var_dump(memoization()->exists($key)); memoization()->set($key, null, $ttl); var_dump(memoization()->exists($key)); memoization()->set($key, 'pouet', $ttl); var_dump(memoization()->exists($key)); ``` donne ``` bool(false) bool(false) bool(false) ``` et on a une boucle infinie ici https://git.spip.net/spip-contrib-extensions/memoization/src/branch/master/memoization_options.php#L295 car le test est toujours false
cerdic closed this issue 9 months ago
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.