[nycphp-talk] How to not cache an include?
Mark Armendariz
nyphp at enobrev.com
Sat Apr 19 00:49:21 EDT 2003
Well, I would guess that newVacancy has a form processor in it that
basically takes the submitted data and inserts it into the db (upon
submission). If you place the insert query before the header include
on NewVacancy.php, the count query SHOULD reflect the new sum.
Are you doing it in this order, and not seeing the updated vacancy
count?
-----Original Message-----
From: Jon Baer [mailto:jonbaer at jonbaer.net]
Sent: Saturday, April 19, 2003 12:29 AM
To: NYPHP Talk
Subject: Re: [nycphp-talk] How to not cache an include?
Well its basically saying that you have a header that includes the total
number of vacancies @ all times and is correct *except* right after a
new one is added using the same form (same page) ... so if you say:
newVacancy.php (includes header.php) - 0 vacancies
-enter new data-
newVacancy.php - response (includes header.php) - 0 vacancies -click to
new page- newPage.php (includes header.php) - 1 vacancies
Is there something I could put into newVacancy.php to reflect the
changes?
- Jon
----- Original Message -----
From: "Mark Armendariz" <nyphp at enobrev.com>
To: "NYPHP Talk" <talk at nyphp.org>
Sent: Friday, April 18, 2003 7:25 PM
Subject: RE: [nycphp-talk] How to not cache an include?
> Are you adding the listing after the listing is displayed? If so, is
> it possible for you to change the order?
>
> -----Original Message-----
> From: Jon Baer [mailto:jonbaer at jonbaer.net]
> Sent: Friday, April 18, 2003 8:48 PM
> To: NYPHP Talk
> Subject: [nycphp-talk] How to not cache an include?
>
>
> Hey,
>
> Im working on an apartment listing site and a part of a header is
> included via include("header.php") which does a count(*) on vacancies
> but after entering a new place and giving confirmation "Vacancy was
> added ..." the header doesn't reflect the last added entry ... not
> really important yet annoying, any ideas?
>
> - Jon
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
--- Unsubscribe at http://nyphp.org/list/ ---
More information about the talk
mailing list