Welcome Guest, Not a member yet? Register   Sign In
Page cached even caching doesn't activated
#1

Hi, I face an odd situation
When I edit file example in view
Like echo "blabla", I have to wait a couple of minutes (about 3-5 minutes) to get the change in my browser even I refresh it many times

It's like cache, but I don't activate cache feature
I also deactivate cache using max-age=0 in htaccess but still get the same problem, I then change to another browser but still get the problem

But when I move to another computer, the problem is gone

Its really frustating, and take lots of my time for just editing and debuging one function
Reply
#2

Please give us more information. Cloud or regular hosting? Version of CI? Are you sure that you turned off all cache settings?
Reply
#3

You said you switched web browsers but you have not told us which web browsers you are using?

Did you check your php.ini file to see if any caching is enabled in it?

Most web browsers have a key stroke that you can do to clear out the cache.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#4

Thx guys, I finally find what causing my problem
It was opcache enabled
When I deactive opcache, it run normally
Reply
#5

I made this to clear the opcache if you need it running. 
Just run the file and it will clear the opcache.

PHP Code:
<?php
/**
 * -----------------------------------------------------------------------
 * Editor   : PhpStorm
 * Date     : 2/7/2020
 * Time     : 11:42 AM
 * Authors  : Raymond L King Sr.
 * -----------------------------------------------------------------------
 *
 * Class        opcache_clear
 *
 * @project     ci4starter
 * @author      Raymond L King Sr.
 * @link        https://www.procoversfx.com
 * @copyright   Copyright (c) 2009 - 2020 Custom Software Designers, LLC.
 * @license     https://www.procoversfx.com/license
 * -----------------------------------------------------------------------
 */

opcache_reset();

/**
 * -----------------------------------------------------------------------
 * Filename: opcache_clear.php
 * Location: ./public_html/opcache_clear.php
 * -----------------------------------------------------------------------
 */ 
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB