I gang

Develop a web cache for a generic MySQL-driven site containing 1.14 million rows

My website is based on a generic (NOT WordPress or other systems!) social network script. Every day it includes about 1,000 new rows to its' main MYSQL table. Since the site now contains 1,143,749 rows, it is beginning to slow down.

I need someone who can create the following caching system for the site:

1. the general URL structure of an individual post is:

http://~site~.com/stories/2134183/[url removed, login to view]

The respective entries in the MySQL table to create this URL are:

- `story_id` int(11)

- `story_title` varchar(255)

2. I want to limit the cache to entries in the MySQL database up to a certain number. The above post has the number 2134183, so if I set this limit to "1500000", the HTML pages of all stories with a `story_id` up to 1500000 should be cached on the server's HDD the first time they have been requested from the internet.

3. There must be an option to manually and/or periodically clear the cache.

4. Due to the large number of rows/stories, it may be required to store the generated cache files in different folders. These folders could be created based on their story_id. For example, the cache could have a structure from "/000/001" to "/999/999" where each folder contains a maximum of 1,000 files. The cached HTML file of the above example (story_id = 2134183) would then be: /002/134/rewritten_story_title.html.

5. Based on the story_id of a requested URL, the caching system must determine whether the story is retrieved from the cache or if it is to be created from the entry in the MySQL database.

I want to mention here again that this is NOT a WordPress/Drupal/Joomla based site but a generic site. Other solutions like NGINX do also not work with this site. Consequently, some code needs to be included in the respective file(s) ("[url removed, login to view]" and/or "[url removed, login to view]").

Færdigheder: MySQL, PHP

Se mere: wordpress develop code, web network solutions, site html 5 wordpress, i want to develop a website where can i, i want develop a website, html 5 web, html 5 internet store, driven it solutions, develop of internet, code 999, clear web solutions, c for int, beginning php and mysql 5, database caching, rows, mysql or nginx, my website is so slow, entries in a day, cache, cache c, wordpress database generated pages, php code entry mysql database, wordpress server slow, joomla slow large database, database driven system php

Om arbejdsgiveren:
( 55 bedømmelser ) Singapore, Vietnam

Projekt-ID: #4066812

Tildelt til:

MustafaSR

Hello Sir, Please check PMB

$100 USD in 2 dage
(72 bedømmelser)
5.7

5 freelancere byder i gennemsnit $133 for dette job

phpprogramming

please check PM for details. ready to start right now.

$165 USD in 2 dage
(36 bedømmelser)
5.3
phongvh

Let me do it.

$150 USD på 1 dag
(19 bedømmelser)
4.8
slaith

Hi I can do this project implementing a file based caching or(if you have multiple servers, I can do memcached).

$50 USD in 3 dage
(0 bedømmelser)
0.0
abhimanyuOO7

We can give an elegant and professional 3D touch. I'll deliver the best results because I believe in building long-term relationship with my clients. I am eagerly waiting for your response.

$200 USD in 10 dage
(0 bedømmelser)
0.0