4. As shown in Figure 5, in $\triangle A B C$, $D$ is the midpoint of side $A B$, and $G$ is the midpoint of $C D$. A line through $G$ intersects $A C$ and $B C$ at points $P$ and $Q$, respectively. Then the value of $\frac{C A}{C P}+\frac{C B}{C Q}$ is $\qquad$.
4. 4 .

As shown in Figure 12, draw $A E / / P Q$ intersecting $C D$ at point $E$, and $B F / / P Q$ intersecting the extension of $C D$ at point $F$. Then $A E / / B F$.

Since $A D = B D$, therefore, $E D = F D$.
$$
\begin{array}{c}
\text { Also, } \frac{C A}{C P} = \frac{C E}{C G}, \\
\frac{C B}{C O} = \frac{C F}{C G}, \\
C E = C D - D E, C F = C D + F D, \\
\text { hence } \frac{C A}{C P} + \frac{C B}{C Q} = \frac{C E + C F}{C G} = \frac{2 C D}{C G} = 4 .
\end{array}
$$