includes/rijndael.php
changeset 613 c08670a77871
parent 602 ecbc8d202058
child 801 eb8b23f11744
--- a/includes/rijndael.php	Wed Jul 09 17:38:26 2008 -0400
+++ b/includes/rijndael.php	Wed Jul 09 17:47:57 2008 -0400
@@ -1689,6 +1689,9 @@
 
 function aes_decrypt_cache_store($encrypted, $decrypted, $key)
 {
+  if ( getConfig('cache_thumbs') != '1' )
+    return false;
+  
   $cache_file = ENANO_ROOT . '/cache/aes_decrypt.php';
   // only cache if $decrypted is long enough to actually warrant caching
   if ( strlen($decrypted) < 32 )