is include() cached with fastcgi?

Viewed 19

i have script like this

script.php

<?php
include "data/package.php";
echo $package[0]["name"];
echo "Hello World";
?>

and i do cache false with this

map $request_uri $cache_false {
    default 0;
    ~^/data/package.php?$ 1;
    ~^/signin.php?$ 1;
}
...
fastcgi_cache cache
fastcgi_cache_bypass $cache_false;
fastcgi_no_cache $cache_false;

and package.php use the session from signin.php page

signin.php

$_SESSION['package'] = 1;

package.php

$package = packages($_SESSION['package']);

i wanna cache the script.php while having the $package content changing without getting cached because every user different in his packages()

does setting $cache_false = 1 for signin and package pages makes include() content changed?

do i only need to use javascript and add the content from client only?

0 Answers
Related