-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with cache (tested on disk and session) #85
Comments
i can't reproduce the error. here's what i am doing $db->query('
SELECT
Name
FROM
city
WHERE
CountryCode = ?
ORDER BY
Name
', array($country_code), 300);
while ($row = $db->fetch_assoc()) {
print_r('<pre>');
print_r($row);
print_r('</pre>');
} |
...actually, looking at your code, in the commented out example, the one where you are using |
regarding the commented out Issue 1: Comment: The Issue 2: Comment: If i use {$offset}, {$itemsPerPage} (currently using) it will run OK. Issue 3: Cache works only using I am using Comment: using using php 7.4 on dev and live @stefangabos thanks |
hey, did you manage to get this working? |
I have this error
First load: (no cache yet) - page will display data
Subsequent: (cached) - Warning: Invalid argument supplied for foreach() in /www/wwwroot/xxxxxx/xxxxx.php on line 71
Debug shows that it has cached the query, whether disk or session . But it wont render in foreach, print_r result is 0.
Im using Zebra_Session with Zebra_Database $link
Its been a while i not used ZDB maybe i have error in the cache syntax in queries.
The text was updated successfully, but these errors were encountered: