[Plugin: Cookillian] Problem with caching
-
I’ve been having some problems today where the plugin wasn’t return a country code no matter what. At first I thought it was the IP from work but when I tried at home I was getting the same response.
The cache data was showing the correct IP but no country code. I commented out the part of the code that attempts to retrieve it from cache and that fixed it – it would appear that the wrong country code was being held in cache.
I’ve therefore looked at the transient cache in my wp-options table and can see that of the 1192 caches that the plugin has made only 230 have country codes – the remaining are blank. This suggests to me that there’s a problem with either the code look-up or the cache storage. The country codes are from lots of different countries, nothing specific.
I’m also concerned that the stats show that not a single user has so far opted in or out.
If it helps at all I’ve attached the debug information to the bottom of this post – it was generated whilst it was still failing. Meantime I’m going to disable the plugin until you can get to the bottom of the problems.
I see the cache is retained for 24 hours – is there also a possibility of making this changeable in the options screen?
David.
<!– Cookillian Debug Information:
array (
‘Will handle the cookies’ => true,
‘Is the visitor logged in’ => false,
‘Is Admin (not AJAX)’ => false,
‘Country list OK’ => true,
‘Detected remote IP address of the visitor’ => ‘94.192.77.222’,
‘2-letter code of detected country’ => ”,
‘Name of detected country’ => ‘Unknown’,
‘Block cookies for this country’ => false,
‘Visitor has opted-in’ => false,
‘Visitor has opted-out’ => false,
)
–>Generated On: Mon, 21 May 2012 19:04:14 GMT
Cookillian Version: 1.0.10
PHP Version: 5.3.8
Memory Usage: 25.51 MB Peak, 25.44 MB Current, 256 MB Max permitted by PHP
Available PHP Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bcmath, calendar, ctype, curl, dom, hash, fileinfo, filter, ftp, gd, gettext, SPL, iconv, session, intl, json, mbstring, mcrypt, mysql, mysqli, standard, Phar, posix, pspell, Reflection, imap, SimpleXML, soap, sockets, exif, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, cgi-fcgi, OAuth, timezonedb, imagick, PDO, pdo_sqlite, SQLite, pdo_mysql, ionCube Loader, Zend Guard Loader
Pf4wp Version: 1.0.10
Pf4wp APC Enabled: No
WordPress Version: 3.3.2
WordPress Debug Mode: Yes
Active WordPress Theme: WP-Clear Child
Active WordPress Plugins: ‘Cookillian’ by Mike Green (Myatu)
Browser: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/536.5 (KHTML, like Gecko) Chrome/19.0.1084.46 Safari/536.5
Server: Apache
Server OS: Linux callisto.servers.eqx.misp.co.uk 2.6.32.21-grsec #10 SMP Tue Dec 27 12:08:57 GMT 2011 x86_64
Database Version: 5.1.62-cll
Template Engine Version: Twig 1.7.0
- The topic ‘[Plugin: Cookillian] Problem with caching’ is closed to new replies.